<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">

  <title>winmain</title>
<script>
	var w;
	window.onload = function(){
		var btn = document.getElementById("winopen");
		btn.onclick = function(){
			w = window.open('winsub.html', 'w', 'width=400px, height=300px;');
		}
	}
</script>
</head>

<body>
	
  <input type="button" value="오픈 창" id="winopen"><br/>
  
   전달한 메세지 : <input type="text" id="ssmm">
  <br/>
   수신된 메세지 : <input type="text" id="rm"> 
  
</body>
</html>
